<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文章列表</title>
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/assets/atcitle/atc_list.css">
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">文章列表</div>
        <div class="layui-card-body">
            <form class="layui-form" id="form_list">
                <!-- 分类 -->
                <div class="layui-form-item layui-inline">
                    <select name="cate_id" id="type">

                    </select>
                </div>
                <div class="layui-form-item layui-inline">
                    <select name="state" >
                        <option value="">所有状态</option>
                        <option value="">已发布</option>
                        <option value="">草稿</option>
                    </select>
                </div>
                <div class="layui-form-item layui-inline">
                    <button class="layui-btn" lay-submit>筛选</button>
                </div>
            </form>
            <!-- 列表 -->
            <table class="layui-table">
                <colgroup>
                    <col>
                    <col width="200">
                    <col width="300">
                    <col width="200">
                    <col width="200">
                </colgroup>
                <thead>
                    <tr>
                        <th>文章标题</th>
                        <th>分类</th>
                        <th>发表时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>

                </tbody>
            </table>
            <!-- 分页 -->
            <div id="test1"></div>
        </div>
    </div>
    <script type="text/html" id="atc_list">
        {{each data}}
        <tr>
            <td>{{$value.title}}</td>
            <td>{{$value.cate_name}}</td>
            <td>{{$value.pub_date|dataFormat}}</td>
            <td>{{$value.state}}</td>
            <td>
                <button type="button" class="layui-btn  layui-btn-normal  layui-btn-xs" id="exid" data-exid={{$value.Id}}>编辑</button>
                <button type="button" class="layui-btn  layui-btn-danger  layui-btn-xs btn-del" data-id={{$value.Id}}>删除</button>
            </td>
        </tr>
        {{/each}}
    </script>
    <script type="text/html" id="listType">
        <option value="">所有分类</option>
    {{each data}}
    <option value="{{$value.cate_id}}">{{$value.cate_name}}</option>
    {{/each}}
    </script>
    <script src="/assets/lib/layui/layui.all.js"></script>
    <script src="/assets/lib/jquery.js"></script>

    <script src="/assets/js/ajaxAPI.js"></script>
    <script src="/assets/lib/template-web.js"></script>
    <script src="/node_modules/moment/moment.js"></script>
    <script src="/assets/js/atcitle/act_list.js"></script>
</body>

</html>